package com.wu.dms.controller;

import com.wu.dms.service.CacheService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Cousin
 * @date 2024/12/23
 * @Description
 */
@RestController
@RequestMapping("cache")
public class CacheController {
    @Resource
    CacheService cacheService;
    @RequestMapping("refreshAccessibleUrls")
    public String refreshCache() {
        cacheService.refreshAccessibleUrls();
        return "Cache refreshed successfully";
    }
}
